package com.lightsaber.trade.as.entity.reta;


import com.lightsaber.trade.core.entity.BaseEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Version;

		/**
 * OrderItem.
 */
@Entity
@Table(name="reta_order_item"
)
public class OrderItem  extends BaseEntity {
	

		
		
    @Version
    @Column(name="version")
		 	private Integer version;
		
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="order_id")
		 	private Order order;
		
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="product_id")
		 	private Product product;
		
		
		
		
		
    
    @Column(name="number", precision=12, scale=0)
		 	private Float number;
		
    
    @Column(name="price", precision=12, scale=0)
		 	private Float price;
		
    
    @Column(name="total_price", precision=12, scale=0)
		 	private Float totalPrice;
		   
    
    
			
    public Integer getVersion() {
        return this.version;
    }
    
    public void setVersion(Integer version) {
        this.version = version;
    }
    
    
			
    public Order getOrder() {
        return this.order;
    }
    
    public void setOrder(Order order) {
        this.order = order;
    }
    
    
			
    public Product getProduct() {
        return this.product;
    }
    
    public void setProduct(Product product) {
        this.product = product;
    }
    
    
    
    
    
    
			
    public Float getNumber() {
        return this.number;
    }
    
    public void setNumber(Float number) {
        this.number = number;
    }
    
    
			
    public Float getPrice() {
        return this.price;
    }
    
    public void setPrice(Float price) {
        this.price = price;
    }
    
    
			
    public Float getTotalPrice() {
        return this.totalPrice;
    }
    
    public void setTotalPrice(Float totalPrice) {
        this.totalPrice = totalPrice;
    }
    
	}


